package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.domain.Contact;
import cn.wolfcode.crm.query.QueryObject;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client record);

    int queryCount(QueryObject qo);

    List<Client> queryList(QueryObject qo);

    /**
     * 根据ID 改变客户的是否签约的状态
     * @param id
     */
    void signing(Long id);
}